package com.lzh.runke.core.persist;

import org.apache.ibatis.mapping.ParameterMapping;

import java.util.List;

public class ParameterMappingHolder {

    final static ThreadLocal<List<ParameterMapping>> HOLDER = new ThreadLocal<>();

    public final static void set(List<ParameterMapping> parameterMapping) {
        if(null == parameterMapping) {
            return;
        }
        HOLDER.set(parameterMapping);;
    }

    public final static List<ParameterMapping> get() {
        return HOLDER.get();
    }

    public final static void remove() {
        HOLDER.remove();
    }
}
